//
//  RESTClient.h
//  storeapp
//
//  Created by huangyi on 13-3-12.
//  Copyright (c) 2013年 ios. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface RESTClient : NSObject

@property(nonatomic,strong)NSDictionary *head;
@property(nonatomic,strong)id json;
@property(nonatomic,strong)NSData *data;
@property(nonatomic)int code;
@property(nonatomic,strong)NSString *message;

+(RESTClient*)HEAD:(NSString*)format,... NS_REQUIRES_NIL_TERMINATION;
+(RESTClient*)POST:(NSString*)format,... NS_REQUIRES_NIL_TERMINATION;

+(NSString*)fullURL:(NSString*)urlstr;

+(RESTClient*)JSON:(NSString*)data SEND:(NSString*)format,... NS_REQUIRES_NIL_TERMINATION;

@end
